package com.why.jvm.hotspot.src.share.vm.oops;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xiaoTian
 * @date 2022/7/21 06:46
 * @Description:
 */
@Data
public class LineNumberTableAttribute extends AttributeInfo{

    private int lineNumberTableLength;

    private List<LineNumberTable> lineNumberTableList = new ArrayList<>();

    @Override
    public String toString() {
        StringBuffer s = new StringBuffer( "\n\t\tLineNumberTableAttribute{" +
                "\n\t\tlineNumberTableLength=" + lineNumberTableLength);
        lineNumberTableList.forEach(e->s.append("\t\t"+e.toString()));
        s.append("}");
        return s.toString();

    }
}

